
<template>
	<div class="logo-container flex-center">
			<a href="/">
				<img src="./logo.png" alt="logo" class="logo">
				<h1 class="title"  v-if="!collapse">物流仓储后台管理</h1>
			</a>
	</div>
</template>

<script setup lang="ts">
import { computed } from 'vue';
import { useSettingsStoreWithOut} from '../../stores/modules/settings'

const settingsStore = useSettingsStoreWithOut();
const collapse = computed(() => settingsStore.collapse)

</script>

<style scoped lang="scss">
.logo-container {
  position: relative;
  display: flex;
  justify-content: center;

  // padding-left: 24px;
  height: 60px;
  overflow: hidden;
  line-height: 60px;
  background: transparent;

  .title {
    display: inline-block;
    margin-left: 12px;
    font-family: Avenir, 'Helvetica Neue', Arial, Helvetica, sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #fff;
    vertical-align: middle;
  }

  .logo {
    display: inline-block;
    width: 32px;
    height: 32px;
    vertical-align: middle;
  }
}
</style>